package com.baseEnum;

/**
 * @Author ri.yang
 * @Since 2016/1/6.
 */
public class SettingEnums {
    /**
     * 验证码类型
     */
    public enum CaptchaType {

        /**
         * 会员登录
         */
        memberLogin,

        /**
         * 会员注册
         */
        memberRegister,

        /**
         * 后台登录
         */
        adminLogin,

        /**
         * 找回密码
         */
        findPassword,

        /**
         * 重置密码
         */
        resetPassword,

        /**
         * 其它
         */
        other, CaptchaType;

        public static CaptchaType[] getCaptchaTypes() {
            CaptchaType[] captchaTypes = {CaptchaType.memberLogin, CaptchaType.memberRegister, CaptchaType.adminLogin, CaptchaType.findPassword, CaptchaType.resetPassword, CaptchaType.other};
            return captchaTypes;
        }
    }

    /**
     * 账号锁定类型
     */
    public enum AccountLockType {

        /**
         * 会员
         */
        member,

        /**
         * 管理员
         */
        admin;

        public static AccountLockType[] getAccountLockTypes() {
            AccountLockType[] accountLockTypes = {AccountLockType.admin, AccountLockType.member};
            return accountLockTypes;
        }
    }
}
